nav.navbar.navbar-expand-lg.navbar-light.bg-light.mb-3.site-header.sticky-top.py-1
  a.navbar-brand(href="#") 主页
  button.navbar-toggler(type="button", data-toggle="collapse", data-target="#navbarText", aria-controls="navbarText", aria-expanded="false", aria-label="Toggle navigation")
    span.navbar-toggler-icon
  .collapse.navbar-collapse#navbarText
    if username
      ul.navbar-nav.mr-auto
        li.nav-item
          a.nav-link(href="./logout") 登出
        li.nav-item
          a.koa.nav-link(href="https://koajs.com/") Based on Koa2 production
      | 您好，#{username}
    else
      ul.navbar-nav.mr-auto
        li.nav-item
          a.nav-link(href="./login") 登录
        li.nav-item
          a.nav-link(href="./register") 注册
        li.nav-item.ml-5
          a.koa.nav-link(href="https://koajs.com/") Based on Koa2 production

